import axios from '../utils/request';

export function Login(data) {
    //debugger;
    return axios({
        method: 'post',
        url: '/Admin/Login',
        data
    });
}

export function Add(data) {
    return axios({
        method: 'post',
        url: '/Admin/Create',
        data
    });
}

export function Query(params) {
    return axios({
        method: 'get',
        url: '/Admin/Page',
        params
    });
}

export function Edit(params) {
    return axios({
        method: 'get',
        url: '/Admin/Find',
        params
    });
}

export function Delete(params) {
    return axios({
        method: 'get',
        url: '/Admin/Delete',
        params
    });
}